package com.livepan.server.service;

import com.livepan.server.error.BusinessException;

import java.util.List;

public interface GraspStateService {

    /**
     * 答题后进行修改
     *
     * @param userId        用户id
     * @param knowId        知识点id
     * @param correctNumAdd 正确的数量
     * @param totalNumAdd   总的应该增加的数量
     * @throws BusinessException
     */
    void updateGrasp(int userId, int knowId, int correctNumAdd, int totalNumAdd) throws BusinessException;

    //根据推荐规则，算出应该给用户推荐的知识点
    Integer getRecommendKnowId(int userId) throws BusinessException;

    List<Integer> getNotMasteredKnowIdList(int userId) throws BusinessException;

    Double getAccuracyByKnowId(int userId, int knowId);

    Integer getTotalNumOfKnowId(int userId, int knowId);
}
